//
//  PictureCollectionViewCell.m
//  Frame
//
//  Created by 这是工作本 on 16/1/14.
//  Copyright © 2016年 这是工作本. All rights reserved.
//

#import "PictureCollectionViewCell.h"

@implementation PictureCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews
{
    
    //预定
    UIImageView *view = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 60 * ScreenHeigth)];
    view.image = [UIImage imageNamed:@"img_jstp@2x.png"];
    [self.contentView addSubview:view];
    //时间
    UILabel *la = [[UILabel alloc] initWithFrame:CGRectMake(0, view.frame.origin.y + view.frame.size.height + 5 * ScreenHeigth, self.contentView.frame.size.width, 20 * ScreenHeigth)];
    la.text = @"鼎飞羽毛球馆";
    la.font = [UIFont systemFontOfSize:13.0 * ScreenWidth];
    la.textAlignment = NSTextAlignmentLeft;
    la.textColor = [UIColor colorWithRed:30 / 255.0 green:30 / 255.0 blue:30 / 255.0 alpha:1.0];
    [self.contentView addSubview:la];

    
}
@end
